/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * FormPrincipal.java
 *
 * Created on 10/03/2011, 17:45:34
 */

package Interface;

import javax.swing.ImageIcon;
import javax.swing.JDesktopPane;
import javax.swing.JLabel;

/**
 *
 * @author Jonas
 */
public class FormPrincipal extends javax.swing.JFrame {

    public static FormPessoa formPessoa = new FormPessoa();
    public static FormPessoaBusca formPessoaBusca = new FormPessoaBusca();
    public static FormFormulario formFormulario = new FormFormulario();
    public static FormFormularioBusca formFormularioBusca = new FormFormularioBusca();
    public static FormCategoria formCategoria = new FormCategoria();
    public static FormCategoriaBusca formCategoriaBusca = new FormCategoriaBusca();
    public static FormQuestao formQuestao = new FormQuestao();
    public static FormQuestaoBusca formQuestaoBusca = new FormQuestaoBusca();
    public static FormRelatorios formRelatorios = new FormRelatorios();
    public static FormRespostas formRespostas = new FormRespostas();


    /** Creates new form FormPrincipal */
    public FormPrincipal() {
        initComponents();
        jDesktopPane1.add(formPessoa);
        jDesktopPane1.add(formPessoaBusca);
        jDesktopPane1.add(formFormulario);
        jDesktopPane1.add(formFormularioBusca);
        jDesktopPane1.add(formCategoria);
        jDesktopPane1.add(formCategoriaBusca);
        jDesktopPane1.add(formQuestao);
        jDesktopPane1.add(formQuestaoBusca);
        jDesktopPane1.add(formRelatorios);
        jDesktopPane1.add(formRespostas);
    }

   

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jDesktopPane1 = new javax.swing.JDesktopPane();
        jMenuBar1 = new javax.swing.JMenuBar();
        menu_cadastro = new javax.swing.JMenu();
        menu_pessoa = new javax.swing.JMenuItem();
        menu_formulario = new javax.swing.JMenuItem();
        menu_categoria = new javax.swing.JMenuItem();
        menu_questao = new javax.swing.JMenuItem();
        menu_opcao = new javax.swing.JMenuItem();
        menu_resposta = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        jMenuItem2 = new javax.swing.JMenuItem();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Gerenciamento de Questionários");
        setMinimumSize(new java.awt.Dimension(800, 600));
        setName("principal"); // NOI18N

        jDesktopPane1.setBackground(new java.awt.Color(204, 204, 204));
        jDesktopPane1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        jDesktopPane1.setFocusCycleRoot(false);

        menu_cadastro.setText("Cadastro");

        menu_pessoa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Interface/imagens/menu/user.png"))); // NOI18N
        menu_pessoa.setText("Pessoa");
        menu_pessoa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_pessoaActionPerformed(evt);
            }
        });
        menu_cadastro.add(menu_pessoa);

        menu_formulario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Interface/imagens/menu/application_form.png"))); // NOI18N
        menu_formulario.setText("Formulário");
        menu_formulario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_formularioActionPerformed(evt);
            }
        });
        menu_cadastro.add(menu_formulario);

        menu_categoria.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Interface/imagens/menu/key_c.png"))); // NOI18N
        menu_categoria.setText("Categoria da questão");
        menu_categoria.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_categoriaActionPerformed(evt);
            }
        });
        menu_cadastro.add(menu_categoria);

        menu_questao.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Interface/imagens/menu/key_q.png"))); // NOI18N
        menu_questao.setText("Questão");
        menu_questao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_questaoActionPerformed(evt);
            }
        });
        menu_cadastro.add(menu_questao);

        menu_opcao.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Interface/imagens/menu/key_o.png"))); // NOI18N
        menu_opcao.setText("Opção");
        menu_cadastro.add(menu_opcao);

        menu_resposta.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Interface/imagens/menu/accept.png"))); // NOI18N
        menu_resposta.setText("Resposta");
        menu_resposta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_respostaActionPerformed(evt);
            }
        });
        menu_cadastro.add(menu_resposta);

        jMenuBar1.add(menu_cadastro);

        jMenu2.setText("Relatórios");
        jMenu2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenu2ActionPerformed(evt);
            }
        });

        jMenuItem2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Interface/imagens/menu/report.png"))); // NOI18N
        jMenuItem2.setText("Relatórios");
        jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem2ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem2);

        jMenuBar1.add(jMenu2);

        jMenu1.setText("Sistema");

        jMenuItem1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Interface/imagens/menu/setting_tools.png"))); // NOI18N
        jMenuItem1.setText("Configurações");
        jMenu1.add(jMenuItem1);

        jMenuBar1.add(jMenu1);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jDesktopPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 582, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jDesktopPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 397, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void menu_pessoaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_pessoaActionPerformed
        formPessoaBusca.setVisible(true);

    }//GEN-LAST:event_menu_pessoaActionPerformed

    private void menu_formularioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_formularioActionPerformed
        formFormularioBusca.setVisible(true);
    }//GEN-LAST:event_menu_formularioActionPerformed

    private void menu_categoriaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_categoriaActionPerformed
        formCategoriaBusca.setVisible(true);
    }//GEN-LAST:event_menu_categoriaActionPerformed

    private void menu_questaoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_questaoActionPerformed
        formQuestaoBusca.setVisible(true);
    }//GEN-LAST:event_menu_questaoActionPerformed

    private void jMenu2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenu2ActionPerformed
       
    }//GEN-LAST:event_jMenu2ActionPerformed

    private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed
        formRelatorios.setVisible(true);
    }//GEN-LAST:event_jMenuItem2ActionPerformed

    private void menu_respostaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_respostaActionPerformed
        // TODO add your handling code here:
        formRespostas.setVisible(true);
    }//GEN-LAST:event_menu_respostaActionPerformed
   

    // Variables declaration - do not modify//GEN-BEGIN:variables
    public static javax.swing.JDesktopPane jDesktopPane1;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenu menu_cadastro;
    private javax.swing.JMenuItem menu_categoria;
    private javax.swing.JMenuItem menu_formulario;
    private javax.swing.JMenuItem menu_opcao;
    private javax.swing.JMenuItem menu_pessoa;
    private javax.swing.JMenuItem menu_questao;
    private javax.swing.JMenuItem menu_resposta;
    // End of variables declaration//GEN-END:variables

}
